package com.itheima.day06.myLocalDateTime.test6;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Test {
    public static void main(String[] args) {
        LocalDateTime localDateTime = LocalDateTime.of(2008, 10, 11, 12, 13, 14);
        DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss");
        localDateTime = localDateTime.withYear(2018);
        System.out.println(localDateTime);
        localDateTime = localDateTime.withDayOfYear(1);
        System.out.println(localDateTime);

    }
}
